package com.hk.service.kyc;

import java.util.List;

import com.hk.commons.HqlFilter;
import com.hk.commons.entity.HKNews;

public interface INews {
	
	public HKNews findById(Integer id);

	/**
	 * 保存
	 * 
	 * @param b
	 * @return
	 */
	public Boolean add(HKNews u);

	/**
	 * 删除
	 * 
	 * @param id
	 * @return
	 */
	public void delete(HKNews u);

	/**
	 * 更新
	 * 
	 * @param b
	 */
	public void update(HKNews u);

	public List<HKNews> findByFilter(HqlFilter hqlFilter, int pageNum,
			int pageSize);

	public List<HKNews> findByFilter(HqlFilter hqlFilter);

	public Long countByFilter(HqlFilter hqlFilter);
	
	/**
	 * 获取所有已发表的新闻
	 * @return
	 */
	public List<HKNews> getActiveNews();
	
	 
}
